package com.jubotech.framework.common.constants;

import java.util.Map;

/**
 * 常量
 *
 * @author SongFei
 * @date 2019/12/24 12:00
 */
public class Constants {

    /**
     * 默认秘钥
     */
    public static final String CIPHER_KEY = "xiaoxxx";

    /**
     * tokens
     */
    public static final String TOKEN = "tokens";

    /**
     * user
     */
    public static final String USER = "user";

    /**
     * 默认分页
     */
    public static final Integer DEFAULT_PAGE_NUM = 1;
    public static final Integer DEFAULT_PAGE_SIZE = 10;

    public static final String DESC = "desc";
    public static final String ASC = "asc";

    public static final String SUCCESS = "success";
    public static final String FAIL = "fail";

    /**
     * 新增用户的默认登录密码
     */
    public static final String DEFAULT_PASS = "123456";


    public static final String REG = "&";

    public static final String REG_ENCODE = "%26";

    public static final String REG_TWO = " ";

    public static final String REG_TWO_ENCODE = "%20";

    public static final String REG_THREE = "|";

    public static final String REG_THREE_ENCODE = "%7C";

    public static final String SPLIT_STRING = ":";

    public static final String SPLIT_STRING_TWO = "_";

    public static final String SPLIT_STRING_THREE = "\\$";

    public static final String SPLIT_STRING_FOUR = "=";

    public static final String STRING_NULL = null;

    public static final Map<String,Object> MAP_NULL = null;

    public static final String STRING_HTTP = "http";

    public static final String STRING_HTTPS = "https";
    /**
     * 常量集合
     */
    public static final int INT0 = 0;
    public static final int INT1 = 1;
    public static final int INT2 = 2;
    public static final int INT3 = 3;
    public static final int INT4 = 4;
    public static final int INT6 = 6;
    public static final int INT100 = 100;

    public static final Long LONG100 = 100L;
    public static final Long LONG1 = 1L;
    public static final Long LONG0 = 0L;

}
